Skip to content

Disable mpi backend build when found xccl #1923

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Chao1Han
Copy link
Contributor

No description provided.

@Copilot Copilot AI review requested due to automatic review settings August 11, 2025 06:59
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Disables MPI backend build when XCCL is found and enabled. This prevents conflicts between XCCL and MPI communication backends by ensuring only one is active.

@@ -53,6 +53,10 @@ if(USE_XCCL)
caffe2_update_option(USE_XCCL OFF)
caffe2_update_option(USE_C10D_XCCL OFF)
update_caffe2_macros_file()
Copy link
Preview

Copilot AI Aug 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The else() clause is unclear without context. Consider adding a comment to explain that this branch executes when XCCL is found and enabled, to improve code readability.

Suggested change
update_caffe2_macros_file()
update_caffe2_macros_file()
# XCCL is found and enabled; disable MPI options and update macros file.

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants